import request from '@/utils/request'

// 查询各项目每日能效列表
export function listEnergyProject(query) {
  return request({
    url: '/system/energyProject/list',
    method: 'get',
    params: query
  })
}

// 查询各项目每日能效详细
export function getEnergyProject(energyId) {
  return request({
    url: '/system/energyProject/' + energyId,
    method: 'get'
  })
}

// 新增各项目每日能效
export function addEnergyProject(data) {
  return request({
    url: '/system/energyProject',
    method: 'post',
    data: data
  })
}

// 修改各项目每日能效
export function updateEnergyProject(data) {
  return request({
    url: '/system/energyProject',
    method: 'put',
    data: data
  })
}

// 删除各项目每日能效
export function delEnergyProject(energyId) {
  return request({
    url: '/system/energyProject/' + energyId,
    method: 'delete'
  })
}
